home *** CD-ROM | disk | FTP | other *** search
/ Virtual Top Model / Virtual Top Model - Disc 1.iso / modulos / intro.dxr / 00037.ls < prev    next >
Encoding:
Text File  |  1997-04-02  |  4.4 KB  |  120 lines

  1. on startMovie
  2.   global nIdioma, sCadena, nError, c1, c2, c3, c4, c5, c6, bAyuda, bVideoNormal, nVolum, nVolumAnt, sPathIni, tIn, tOut, tMovie, tF6, tInOrg, tOutOrg, AzControl, sMensaje01, sMensaje02, sMensaje03, sMensaje04, Unidad, bDebug, bPresMod1, NumCd, sModuloInicio, bPrimeraVez
  3.   if the colorDepth < 16 then
  4.     case nIdioma of
  5.       1:
  6.         alert("Para ejecutar VTM su monitor debe estar configurado a 32.768 colores como m├¡nimo")
  7.       2:
  8.         alert("To run VTM your display must be configured at least to 32.768 colors")
  9.       3:
  10.         alert("Pour ex├⌐cuter VTM votre moniteur doit ├¬tre configur├⌐ au minimum ├á 32.768 couleurs")
  11.     end case
  12.     quit()
  13.   else
  14.     set the exitLock to 0
  15.     set sCadena to EMPTY
  16.     set nError to 0
  17.     set c1 to the number of member "ojo"
  18.     set c2 to the number of member "ojomask"
  19.     set c3 to the number of member "boca"
  20.     set c4 to the number of member "bocamask"
  21.     set c5 to the number of member "go"
  22.     set c6 to the number of member "gomask"
  23.     set the text of member "password" to " "
  24.     set bPresMod1 to 1
  25.     set nVolumAnt to the soundLevel
  26.     set bAyuda to 1
  27.     set tIn to []
  28.     set tOut to []
  29.     set tMovie to []
  30.     set tF6 to [32420, 32780, 3]
  31.     set tInOrg to [110760, 59925, 106640, 65930, 102775, 154535, 165780, 157455, 193320]
  32.     set tOutOrg to [113705, 64000, 110135, 71190, 104765, 156630, 168460, 160935, 197600]
  33.     set AzControl to "indy"
  34.     case nIdioma of
  35.       1:
  36.         set sMensaje01 to "No se pueden capturar m├ís de 100 im├ígenes. Para borrar todas la im├ígenes ejecute 'delete' en el m├│dulo IPEP o elimine ficheros BMP del directorio " & sPathIni & "snapshot"
  37.         set sMensaje02 to "Imposible abrir fichero"
  38.         set sMensaje03 to "No hay ninguna fotograf├¡a capturada"
  39.         set sMensaje04 to "No hay ninguna secuencia grabada"
  40.       2:
  41.         set sMensaje01 to "Saisie limit├⌐e ├á 100 images. Pour supprimer toutes les images, ex├⌐cuter 'delete' dans le module IPEP ou suprimer les dossiers BMP du repertoire " & sPathIni & "snapshot"
  42.         set sMensaje02 to "Impossible d'ouvrir le dossier"
  43.         set sMensaje03 to "Pas de photo saisie"
  44.         set sMensaje04 to "Pas de s├⌐quence enregistr├⌐e"
  45.       3:
  46.         set sMensaje01 to "Capture limited to 100 images. To delete all images execute 'delete' in the IPEP module or cancel BMP files from directory " & sPathIni & "snapshot"
  47.         set sMensaje02 to "Impossible to open file"
  48.         set sMensaje03 to "No photo captured"
  49.         set sMensaje04 to "No sequence recorded"
  50.     end case
  51.     set oFichero to new(xtra("fileio"))
  52.     openFile(oFichero, sPathIni & "jam", 1)
  53.     if status(oFichero) = 0 then
  54.       set bDebug to 1
  55.     else
  56.       set bDebug to 0
  57.     end if
  58.     closeFile(oFichero)
  59.     openFile(oFichero, sPathIni & "vtmprefs.ini", 1)
  60.     set bPrimeraVez to status(oFichero) = -43
  61.     if status(oFichero) = 0 then
  62.       set sLinia to readLine(oFichero)
  63.       if sLinia = EMPTY then
  64.         set bVideoNormal to 1
  65.         set nVolum to 1
  66.         set sModuloInicio to "1"
  67.       else
  68.         set bVideoNormal to value(char 1 of sLinia)
  69.         set nVolum to value(char 2 of sLinia)
  70.         set sModuloInicio to char 3 of sLinia
  71.       end if
  72.     else
  73.       set bVideoNormal to 1
  74.       set nVolum to 1
  75.       set sModuloInicio to "1"
  76.     end if
  77.     closeFile(oFichero)
  78.     set oFichero to 0
  79.     if (bVideoNormal <> 1) and (bVideoNormal <> 0) then
  80.       set bVideoNormal to 1
  81.     end if
  82.     if (nVolum < 0) or (nVolum > 7) then
  83.       set nVolum to the soundLevel
  84.     end if
  85.     if (value(sModInicio) < 1) or (value(sModInicio) > 8) then
  86.       set sModInicio to "1"
  87.     end if
  88.     if value(sModuloInicio) > 4 then
  89.       set NumCd to 2
  90.     else
  91.       set NumCd to 1
  92.     end if
  93.     set sModuloInicio to "mod-" & sModuloInicio
  94.     set the soundLevel to nVolum
  95.     go("video intro" & bVideoNormal)
  96.   end if
  97. end
  98.  
  99. on stopMovie
  100.   global bDebug
  101.   set the exitLock to not bDebug
  102. end
  103.  
  104. on mayusculas letra
  105.   set sRetorno to EMPTY
  106.   set nAscii to charToNum(letra)
  107.   if (nAscii > 64) and (nAscii < 91) then
  108.     set sRetorno to letra
  109.   else
  110.     if (nAscii > 96) and (nAscii < 123) then
  111.       set sRetorno to numToChar(nAscii - 32)
  112.     end if
  113.   end if
  114.   return sRetorno
  115. end
  116.  
  117. on coordenadas
  118.   put "if the mouseV >= " & the locV of sprite 6 & " and the mouseH >= " & the locH of sprite 6 & " and the mouseV <= " & the locV of sprite 6 + the height of sprite 6 & " and the mouseH <= " & the locH of sprite 6 + the width of sprite 6 & " then"
  119. end
  120.